package com.b2c.product.controller.admin;

import com.b2c.product.service.SpecGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import result.Result;

@RestController("adminSpecGroupController")
@RequestMapping("/admin/spg")
public class SpecGroupController {
    @Autowired
    private SpecGroupService specGroupService;



    /**
     * 获取所有的品类
     *
     * @return
     */
    @GetMapping("/queryAll")
    public Result getAll() {
        return specGroupService.getAllSpecGroup();
    }
}
